/**********************************************************************************************************************
 *
 * Project:    mGameEngine
 * File:       connectionstate.h
 * Author:     karooolek
 * Created on: 2009-03-14
 *
 **********************************************************************************************************************/

#ifndef CONNECTIONSTATE_H_
#define CONNECTIONSTATE_H_

namespace mGameEngine
{
namespace Network
{

/**
 * Connection state.
 */
enum ConnectionState
{
    CONN_STATE_CLOSED = 0,    ///< Connection is closed.
    CONN_STATE_OPENED,        ///< Connection is opened, waiting for client.
    CONN_STATE_CONNECTING,    ///< Connecting to server.
    CONN_STATE_CONNECTED,    ///< Connection with client established.
    CONN_STATE_LOST            ///< Connection was lost.
};

}
}

#endif // CONNECTIONSTATE_H_
